package com.exigenservices.practice.roadcompanion.service;

import com.exigenservices.practice.roadcompanion.entity.Points;
import com.exigenservices.practice.roadcompanion.entity.User;
import com.exigenservices.practice.roadcompanion.entity.UserRoutes;

import java.sql.Time;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: Minsk
 * Date: 16.07.13
 * Time: 16:17
 * To change this template use File | Settings | File Templates.
 */
public class DRoute {

    UserRoutes route;
    List<DPoint> points = new ArrayList<DPoint>();


    protected DPoint addPoint(Points point) {
        DPoint dPoint = new DPoint(point);
        points.add(dPoint);
        return dPoint;
    }

    public DRoute() {
    }

    protected UserRoutes getRoute() {
        return route;
    }

    public List<DPoint> getPoints() {
        return points;
    }

    public DRoute(UserRoutes route) {
        this.route = route;

    }

    public Long getID() {
        return route.getID();
    }

    public Long getUserID() {
        return route.getUserID();
    }

    public void setUserID(Long id) {
        route.setUserID(id);
    }

    public Time getTime() {
        return route.getTime();
    }

    public void setTime(Time time) {
        route.setTime(time);
    }

    public Date getDate() {
        return route.getDate();
    }

    public void setDate(Date date) {
        route.setDate(date);
    }
}
